-
-
Notifications
You must be signed in to change notification settings - Fork 394
[Toolkit][Shadcn] Add Dialog component
#3173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 2.x
Are you sure you want to change the base?
Conversation
|
Hey, and thanks for the contribution! That's super appreciated 🤗 I don't see any issue with the closing icon, it's well displayed: About the "focus trap" thing, I agree. I didn't see native things and the solution used in by Shadcn/RadixUI seems very complex. Thanks! |
src/Toolkit/kits/shadcn/dialog/templates/components/Dialog/Content.html.twig
Show resolved
Hide resolved
| @@ -0,0 +1,15 @@ | |||
| {# @prop open boolean Open (or not) the Dialog at initial rendering, default to `false` #} | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing @prop for id
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added it.
42dd883 to
a4a31fe
Compare
I'll look into improving the focus section. |
|
I think you should remove the |


This pull request introduces the new
Dialogcomponent to the Shadcn UI kit in the Symfony UX Toolkit, including its templates for all subcomponents (Close, Content, Description, Footer, Header, Title, Trigger), JavaScript controller, documentation, and manifest.I encountered a display issue with the
Labelcomponent. So I updated this component to reflect Shadcn.Below is a demonstration of the
Dialogcomponent:Dialog.mp4
However, I am having a problem with the
lucid-xicon. In the middle of it, there is what looks like a white line.The second problem I see is that when using the Tab key while the dialog is open, elements outside the dialog can also be focused. This is unacceptable.
What do you think?
(In any case, this kit system is great, and it's only the beginning.)